package com.zs.blog.model.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.time.LocalDateTime;

/**
 * @Title: ArticleRelatedVO
 * @Author zs
 * @Package com.zs.blog.model.vo
 * @Date 2025/3/31 21:04
 * @description: 相关文章视图对象
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
public class ArticleRelatedVO {
    @Schema(description = "文章ID")
    private Long id;

    @Schema(description = "文章缩略图")
    private String articleThumb;

    @Schema(description = "文章标题")
    private String articleTitle;

    @Schema(description = "创建时间")
    @JsonFormat(locale = "zh", timezone = "GMT+8", pattern = "yyyy-MM-dd hh-mm-ss", shape = JsonFormat.Shape.STRING)
    private LocalDateTime createTime;
}
